package second;

import java.util.List;

public class Main {
    int[][] board = new int[][]{
            {0, 0, 0},
            {1, 1, 1},
            {0, 1, 0}
    };
    public boolean is_full(int[][] board, int row){
        if (row < 0 || row >= board.length) return false;
        int[] arr = board[row];
        for (int i = 0; i < arr.length; i ++ ){
            if (arr[i] != 1) return false;
        }
        return true;
    }
    public boolean lock_dot(int[][] board, int[] pos){
        return board[pos[0]][pos[1]] == 1;
    }
    public boolean lock_piece(int[][] board, List<int[]> pos, char piece){
        for (int[] arr : pos){
            if (board[arr[0]][arr[1]] != 1) return false;
        }
        return true;
    }
}
